﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
 
using System.Text;
using System.Windows.Forms;

namespace Skipette
{
    public partial class FormCompact : Form, BaseMain
    {
        Startup st;
        bool safeClose;

        public FormCompact(Startup st)
        {
            this.st = st;
            InitializeComponent();
        }

        public FormCompact()
        {
            InitializeComponent();
        }

        //FOR BLINKING CONTROLS
        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams cp = base.CreateParams;
                cp.ExStyle |= 0x02000000;  // Turn on WS_EX_COMPOSITED
                return cp;
            }
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            st.Close();
        }

        private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            st.Logout();
        }

        private void compactViewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //FormMain mainWindow = new FormMain();
            //mainWindow.Show();
        }

        private void onlineToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void pictureProfile_Click(object sender, EventArgs e)
        {
            ProfileView profileWindow = new ProfileView();
            profileWindow.Show();
        }

        public void UpdateStatuses()
        {
            throw new NotImplementedException();
        }

        public bool IsVisible()
        {
            return this.Visible;
        }

        public void SetSafeClose(bool safe)
        {
            this.safeClose = safe;
        }


        public void ShowMessage(int convId, string authUserName, string dateTime, string message)
        {
            throw new NotImplementedException();
        }
    }
}
